#!/bin/bash
LOG=`tail -300 /iflytek/nginx/logs/access.log |grep "502"|wc -l`
if [ $LOG -ge 100 ];then
      /iflytek/php/sbin/php-fpm restart
fi